
<%@ page import="com.plan.WorkplanDetail" %>
<%@ page import="com.plan.Workplan" %>
<div id="list-workplanDetail" class="content scaffold-list" role="main">
    <table>
        <thead>
            <tr>
                <th><g:message code="workplanDetail.content.label" default="content" /></th>
                <th><g:message code="workplanDetail.result.label" default="result" /></th>
                <th><g:message code="workplanDetail.status.label" default="status" /></th>
                <th><g:message code="operate.label" default="operate" /></th>
            </tr>
        </thead>
        <tbody>
        <g:each in="${workplanInstance?.details}" status="i" var="workplanDetailInstance">
            <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

                <td><g:link action="show" id="${workplanDetailInstance.id}">${fieldValue(bean: workplanDetailInstance, field: "content")}</g:link></td>

                <td>${fieldValue(bean: workplanDetailInstance, field: "result")}</td>

                <td>${fieldValue(bean: workplanDetailInstance, field: "status")}</td>
                <td><g:link class="edit" controller="workplanDetail" action="edit" id="${workplanDetailInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
                <g:link class="edit" controller="workplanDetail" action="delete" id="${workplanDetailInstance?.id}"
                        onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');">
                    <g:message code="default.button.delete.label" default="Delete" /></g:link>

                </td>

            </tr>
        </g:each>
        </tbody>
    </table>
</div>
